#ifndef MYWIDGET_H
#define MYWIDGET_H

#include <QWidget>
#include "mythread.h"

QT_BEGIN_NAMESPACE
namespace Ui { class myWidget; }
QT_END_NAMESPACE

class myWidget : public QWidget
{
    Q_OBJECT

public:
    myWidget(QWidget *parent = nullptr);
    ~myWidget();

//public slots:
signals:

    void startThread();
//    void stopThread();
private slots:
    void on_pBtnStart_clicked();
    void dealClose();
    void on_pBtnStop_clicked();
    void dealSignal();
private:
    Ui::myWidget *ui;
    myThread *myT;   //自定义线程
    QThread *thread; //子线程

};
#endif // MYWIDGET_H
